﻿@{
    ViewBag.Title = "签收单列表";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(  
 Html.nbGridFor<DishDelivery>(s =>
 {
     s.Action("List");
     s.Columns(c =>
     {
         c.Bind(m => m.Id).IsKey();
         c.BindDateTime(m => m.Date).Width(70).AsSearch();
         c.BindEnum(m => m.SiteID, "ProjectSite").Width(80).AsSearch();
         c.Bind(m => m.SiteName).Hide();
         c.Bind(m => m.Address).Width(140).Align(GridAlign.Left).AsSearch().AsQuery();
         c.BindEnum(m => m.State, "DishState").Width(40);
         c.Bind(m => m.UpdateUser).Width(60);
         c.BindDateTime(m => m.UpdateDate).Width(70);
         c.BindTemplate(80)
            .Template(@<a href="@Url.OpenDialog(Url.Action("Edit", new { Id = "${Id}" }), "查看明细（${SiteName}）")" class="imgbtn2" ><span
                class="accept">查看明细</span></a>);
     });
 }))

